<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>多人聊天页面</title>
	<link href="<%=request.getContextPath() %>/resources/img/tea.png" rel="icon">
    <link href="<%=request.getContextPath() %>/resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="<%=request.getContextPath() %>/resources/css/datepicker.css" rel="stylesheet">
    <link href="<%=request.getContextPath() %>/resources/layui/css/layui.css" rel="stylesheet">
    <link href="<%=request.getContextPath() %>/resources/css/allpeoplechat.css" rel="stylesheet">
    <script src="<%=request.getContextPath() %>/resources/jquery/jquery-1.11.3.min.js"></script>
    <script src="<%=request.getContextPath() %>/resources/bootstrap/js/bootstrap.min.js"></script>
    <script src="<%=request.getContextPath() %>/resources/layer/layer.js"></script>
    <script src="<%=request.getContextPath() %>/resources/layui/layui.js"></script>
    <script src="<%=request.getContextPath() %>/resources/js/numberChina.js"></script>
    <script src="<%=request.getContextPath() %>/resources/js/date-time/bootstrap-datepicker.js"></script>
    <script src="<%=request.getContextPath() %>/resources/js/allpeoplechat.js"></script>
    <script type="text/javascript" src="https://unpkg.com/wangeditor/release/wangEditor.min.js"></script>


</head>
<body class="hold-transition skin-blue sidebar-mini" style="background-image: linear-gradient(to top, #fff,#30A12B); height: 950px;">
<input id="nickname" type="text" value="<%=session.getAttribute("nickname")%>" hidden>
	<jsp:include page="/WEB-INF/jsp/menu.jsp" />

    <div class="form row">
         <div class="container">
             <%--<input id="text" type="text" /><button onclick="send()">Send</button>    <button onclick="closeWebSocket()">Close</button>--%>
             <div class="form-group">
                 <div id="message">
                 </div>

             </div>

        </div>
        <div class="form-group" style="width: 60%" id="sendmessageDiv">
            <div id="editor"></div>
        </div>
        <div class="form-group " style="width: 100%" align="center">
            <input type="button" onclick="send()" value="发送" class="btn btn-info" style="width:100px">
            <input type="button" onclick="closeWebSocket()" value="关闭连接" class="btn btn-danger" style="width:100px">
        </div>

    </div>
</body>
<script type="text/javascript">
	//百度富文本框
    var E = window.wangEditor
    var editor = new E('#editor')
    // 或者 var editor = new E( document.getElementById('editor') )

    editor.customConfig.uploadImgShowBase64 = true

    editor.create()
</script>
</html>
